package com.xyzh05.dao.hibernate;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.xyzh05.dao.VipServiceTransactionDao;
import com.xyzh05.model.VipServiceTransaction;

@Repository("vipServiceTransactionDao")
public class VipServiceTrancationDaoHibernate extends GenericDaoHibernate<VipServiceTransaction, Long> implements VipServiceTransactionDao {

    public VipServiceTrancationDaoHibernate() {
        super(VipServiceTransaction.class);
    }

	public List<VipServiceTransaction> getVSTbyVipService(Long vipServiceId) {
		return this.getHibernateTemplate().find("from VipServiceTransaction v where v.vipService.id=?" , new Object []{vipServiceId});
	}
}
